package aufgabe_03;

public class BoxingUnboxing2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Boolean b = new Boolean(true);
		Character c;
		Integer var1 = 9;
		Integer var2 = 6;
		int var3 = var1.intValue() - var2.intValue();
		
		var1++;
		var2++;
		
		var1--;
		var2--;
		
		System.out.println("Der Wert von var3 ist: " + var3);
		
		
		System.out.println("var1 > var2 : " + (var1 > var2 ? b.TRUE : b.FALSE));
		System.out.println("var1 < var2 : " + (var1 < var2 ? b.TRUE : b.FALSE));
		System.out.println("var1 == var2 : " + (var1 == var2 ? b.TRUE : b.FALSE));
		System.out.println("var1 != var2 : " + (var1 != var2 ? b.TRUE : b.FALSE));
		System.out.println("var1 vor der Bit-Operation: " + (var1.toString()));
		var1 = var1 << 1;
		System.out.println("var1 nach der Bit-Operation: " + (var1.toString()));
		System.out.println("b ist : " + (b.toString()));
		
		c = new Character('c');
		switch(c)
		{
		default : System.out.println("Der Ausdruck der switch-Anweisung hat den Wert " + var1.toString());
		}
	}

}
